package com.dh.blog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.dh.blog.vo.LeaveVo;

/**
 * 
 * @author David
 *
 */
@Repository
public interface LeaveDao {
	/**
	 * 添加留言
	 * @param leave
	 */
	public void addOne(LeaveVo leave);
	/**
	 * 删除留言
	 * @param blogId
	 * @param leaveId
	 */
	public void deleteOne(@Param("blogId")String blogId,@Param("leaveId")Integer leaveId);
	/**
	 * 获取指定数量的最新留言
	 * @param blogId
	 * @param num
	 */
	public List<LeaveVo> getTopByNum(@Param("blogId")String blogId,@Param("num")Integer num);
}
